<?php
/**
 * Created by PhpStorm.
 * User: 王峥宇
 * Date: 2019-04-30
 * Time: 0:28
 */

namespace app\admin\controller;

use app\admin\model\Rengong as RwngongModel;
use think\Db;
use think\Loader;
class Rengong extends Base
{
    public function index(){
        if(request()->isAjax()) {
            $ren = RwngongModel::getRen();
            return $ren;
        }else{
            $ren = RwngongModel::getRen();
            $this->assign('ren',$ren);
            return $this->fetch();
        }
    }
    public function uplode()
    {
        $gai = RwngongModel::xiugai();
    }
}